package com.yangye.springclouddemoprovider1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@SpringBootApplication
@EnableEurekaClient
@RestController
public class SpringCloudDemoProvider1Application {

//	@Value("${server.port}")
//	private String port;

	public static void main(String[] args) {
		SpringApplication.run(SpringCloudDemoProvider1Application.class, args);
	}

//	@RequestMapping("/hello")
//	public String hello(HttpServletRequest request) {
//		return "hello - " + this.port;
//	}
}
